package com.example.back.dto.req;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
@Data
@ApiModel(value = "菜单请求体")
public class ModuleReq implements Serializable {

    @ApiModelProperty(value = "菜单的ID")
    @JSONField(name = "ID")
    private Long ID;
    @ApiModelProperty(value = "菜单的名称", required = true)
    @JSONField(name = "Name")
    private String Name;
    @ApiModelProperty(value = "菜单的父级id", required = true)
    @JSONField(name = "PID")
    private Long PID;
    @ApiModelProperty(value = "菜单的访问路径URL")
    @JSONField(name = "Url")
    private String Url;
    @ApiModelProperty(value = "跳转url")
    @JSONField(name = "ShowUrl")
    private String ShowUrl;
    @ApiModelProperty(value = "菜单的图标")
    @JSONField(name = "Icon")
    private String Icon;
    @ApiModelProperty(value = "菜单的排序", required = true)
    @JSONField(name = "Sort")
    private Integer Sort;

}
